package demo1;
//Test.java

import java.util.Scanner;

public class Test {
    //注意事项:3
    //public static void fun() throws Exception{
    //
    // }
    public  static void fun() throws NullPointerException,ArrayIndexOutOfBoundsException{

    }
    //注意事项:4
    public static void main(String[] args) throws CloneNotSupportedException{
        Person person=new Person();
        person.clone();
    }
}
//    public static void fun(int a) {
//        if (a == 0) {
//            throw new NullPointerException("空指针异常");
////            System.out.println("hahahh");//注意事项:4
//        }
//    }
//
//    public static void main1(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        int a = sc.nextInt();
//        fun(a);
//        int[] array = new int[a];
//    }
